Skip to main content
POST
`POST /v1/capture/{token}/media`: stores one capture against the session.

Path Parameters

token
string
required

Single-use capture token

Body

application/json

One capture from the person being verified.

challenge_nonce
string
required

The session's nonce, echoed back.

image_base64
string
required

The capture itself.

kind
enum<string>
required

Which capture this is.

Available options:
SELFIE,
DOCUMENT
media_type
string
required

What the client says the bytes are.

declared_document
null | object

What the person says the document is, sent with the document capture.

Optional, and ignored on a selfie. An older capture client that does not send it still works; it declares nothing, and nothing is compared.

Response

Accepted

What the subject is told. Deliberately thin - see the module docs.

awaiting
string[]
required

Whether Esectra still expects something else before it can finish.

stored
string
required

Which capture was stored.